<empty name="user">
    <!--未登录状态-->
    <div class="personal1">
        <div class="avatar-img">
          <img src="__ASSET__/Home/v4/src/images/avatar-mr.png" alt="游客">
        </div>
        
        <div class="info-tips font14 colorthree">游客，您好</div>
        <div class="btn-tips">
            <button type="button" class="btn blue-bg login_btn" onclick="loginShow();" title="登录">登录</button>
            <button type="button" class="btn reg_btn" title="注册" onclick="registerShow();">注册</button>
        </div>
    </div>
<else />
    <!--已登录状态-->
    <notempty name="user.background">
        <div class="personal1 logined" style="background:url('{$user.background}') no-repeat  scroll 0 0 / 100% 100%;height:164px;">
    <else />
        <div class="personal1 logined" style="height:164px;">
    </notempty>
        <div class="avatar-img avatar-img-new bordertwo" style="position:relative;">
             <img src="{$user.avatar|default='__ASSET__/Home/v4/src/images/avatar-mr.png'}"  alt="{$user.nickname}">
             <notempty name="user.auth">
                <img src="{$user.auth.pic}" class="newG-icon" title="{$user.auth.name}" alt="{$user.auth.name}">
             </notempty>
        </div>
        <div class="name">
            <span class="level green-bg font12">Lv.{$user.level}</span>
            <span class="nicheng font14">{$user.nickname}</span>
            <switch name="user.gender">
               <case value="男">
                  <img src="__ASSET__/Home/v4/src/images/sex.png" class="sex_img"/>
               </case>
               <case value="女">
                  <img src="__ASSET__/Home/v4/src/images/girl.png" class="sex_img"/>
               </case>
            </switch>
        </div>
        <ul class="mine font13">
            <li>
                <a href="/my-fans" title="粉丝">
                    <i class="mine-img1"></i>
                    <div class="mine-span overflow">粉丝：{$user.statis.fans|default=0}</div>
                </a>
            </li>
            <li>
                <a href="/my-follows" title="关注">
                    <i class="mine-img2"></i>
                    <div class="mine-span overflow">关注：{$user.statis.follows|default=0}</div>
                </a>
            </li>
            <li>
                <a href="/my-games" title="游戏">
                    <i class="mine-img3"></i>
                    <div class="mine-span overflow">游戏：{$user.statis.scribe|default=0}</div>
                </a>
            </li>
        </ul>
    </div>
    <!--个人相关-->
    <ul class="my-info font14">
        <li>
            <a href="/user-{$Think.const.UID}" title="我的动态">
                <i class="li-img1"></i>
                <div class="li-span">我的动态</div>
            </a>
        </li>
        <!-- <li onclick="warning_info()">
            <a href="javascript:;" title="与我相关">
                <i class="li-img9"></i>
                <div class="li-span">与我相关</div>
            </a>
        </li> -->
        <li>
            <a href="/favour-video" title="我的收藏">
                <i class="li-img7"></i>
                <div class="li-span">我的收藏</div>
            </a>
        </li>
        <li>
            <a href="/history-video" title="查看记录">
                <i class="li-img6"></i>
                <div class="li-span">查看记录</div>
            </a>
        </li>
        <li>
            <a href="/profile" title="个人资料">
                <i class="li-img5"></i>
                <div class="li-span">个人资料</div>
            </a>
        </li>
        <li>
            <a href="/account" title="账号设置">
                <i class="li-img2"></i>
                <div class="li-span">账号设置</div>
            </a>
        </li>
    </ul>
</empty>
<script> 
  function  warning_info () {
        layer.alert('功能暂未开通');
  }
</script>